<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
    <!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en-US"> <![endif]-->
    <!--[if IE 7]>    <html class="lt-ie9 lt-ie8" lang="en-US"> <![endif]-->
    <!--[if IE 8]>    <html class="lt-ie9" lang="en-US"> <![endif]-->
    <!--[if gt IE 8]><!--> 
<html lang="en-US"> <!--<![endif]-->
    <head>
        <!-- META TAGS -->
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <title>ToZero-从零开始</title>

        <link rel="shortcut icon" href="/gz31/wenda/Public/h/images/favicon.png" />

        <!-- 样式-->
        <link rel="stylesheet" href="/gz31/wenda/Public/h/style.css"/>
        <link rel='stylesheet' id='bootstrap-css-css'  href='/gz31/wenda/Public/h/css/bootstrap5152.css?ver=1.0' type='text/css' media='all' />
        <link rel='stylesheet' id='responsive-css-css'  href='/gz31/wenda/Public/h/css/responsive5152.css?ver=1.0' type='text/css' media='all' />
        <link rel='stylesheet' id='pretty-photo-css-css'  href='/gz31/wenda/Public/h/js/prettyphoto/prettyPhotoaeb9.css?ver=3.1.4' type='text/css' media='all' />
        <link rel='stylesheet' id='main-css-css'  href='/gz31/wenda/Public/h/css/main5152.css?ver=1.0' type='text/css' media='all' />
        <link rel='stylesheet' id='blue-skin-css'  href='/gz31/wenda/Public/h/css/blue-skin5152.css?ver=1.0' type='text/css' media='all' />
        <link rel='stylesheet' id='custom-css-css'  href='/gz31/wenda/Public/h/css/custom5152.html?ver=1.0' type='text/css' media='all' />


        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
        <script src="/gz31/wenda/Public/h/js/html5.js"></script>
        <![endif]-->

    </head>

    <body>

        <!-- 头部 Start of Header -->
                <!-- 头部结束 End of Header -->

        <!-- 搜索 Start of Search Wrapper -->
            <!-- 头部 Start of Header -->
        <div class="header-wrapper">
            <header>
                <div class="container">


                    <div class="logo-container">
                        <!-- Website Logo -->
                        <a href="<?php echo U('Index/index');?>"  title="Knowledge Base Theme">
                                <img src="/gz31/wenda/Public/h/images/logo.png" alt="Knowledge Base Theme">
                        </a>
                        <span class="tag-line">ToZero 从零开始</span>
                    </div>


                    <!-- 导航栏开始 Start of Main Navigation -->
                    <nav class="main-nav">
                        <div class="menu-top-menu-container">
                            <ul id="menu-top-menu" class="clearfix">
                                <li class="current-menu-item"><a href="<?php echo U('Index/index');?>">首页</a></li>
                                <li><a href="#" onclick="alert('There is nothing!')">最新公告</a></li>
                                <li><a href="#">分类</a>
                                    <ul class="sub-menu">
                                    <?php if(is_array($cats)): foreach($cats as $key=>$cat): ?><li><a href='<?php echo U("Ask/cat_ask", ["cid"=>$cat["id"]]);?>'><?php echo ($cat["name"]); ?></a></li><?php endforeach; endif; ?>
                                    </ul>
                                </li>

                                <li><a href="#" onclick="alert('There is nothing!')">联系我</a></li>
                                <li><a href="#">个人中心</a>
                                    <ul class="sub-menu">
                                        <?php if($webuserinfo == null): ?><li><a href="<?php echo U('Login/login');?>">登入</a></li>
                                            <li><a href="<?php echo U('Register/register');?>">注册</a></li>
                                        <?php else: ?>    
                                            <li><a href="<?php echo U('User/center');?>">欢迎：<font color="yellow"><?php echo ($webuserinfo); ?></font></a></li>
                                            <li><a href="<?php echo U('Question/add');?>">我要提问</a></li>
                                            <li><a href="<?php echo U('Login/logout');?>">安全退出</a></li><?php endif; ?>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                    </nav>
                    <!-- 导航栏结束 End of Main Navigation -->

                </div>
            </header>
        </div>
        <!-- 头部结束 End of Header -->


		<div class="search-area-wrapper">
            <div class="search-area container">
                <!-- <h3 class="search-header">Have a Question?</h3>
                <p class="search-tag-line">If you have any question you can ask below or enter what you are looking for!</p> -->

                <form id="search-form" class="search-form clearfix" method="get" action="#" autocomplete="off">
                    <input class="search-term required" type="text" id="s" name="s" placeholder="请输入搜索的内容" title="* Please enter a search term!" />
                    <input class="search-btn" type="submit" value="Search" />
                    <div id="search-error-container">jquery.liveSearch.js触发搜索时间</div>
                </form>
            </div>
        </div>
        <!-- End of Search Wrapper -->
        <div class="copyrights"></div>

        <!-- 页面内容 Start of Page Container -->
        <div class="page-container">
            <div class="container">
                <div class="row">

                    <!--页面主题左侧内容 start of page content -->
                    <div class="span8 page-content">

                        <!-- Basic Home Page Template -->
                        <div class="row separator">
                            <section class="span4 articles-list">
                                <h3>精选答题</h3>
                                <ul class="articles">
                                <?php if(is_array($popular_asks)): foreach($popular_asks as $key=>$v): ?><li class="article-entry standard">
                                        <h4><a href='<?php echo U("Ask/ask_detail", ["askid"=>$v["id"]]);?>'><?php echo ($v["title"]); ?></a></h4>


                                        <span class="article-meta">
                                        <?php if(empty($v['last_time'])): echo (date('Y/m/d',$v['public_time'])); ?> 
                                        <?php else: ?>
                                         <?php echo (date('Y/m/d',$v['last_time'] )); endif; ?>
        
                                        <a href='<?php echo U("Ask/cat_ask", ["cid"=>$v["cid"]]);?>' title="前往改分类下的文章列表"> <?php echo (getAskCateName($v["cid"])); ?></a></span>
                                        <span class="like-count"><?php echo ($v['clickgood_num']); ?></span>
                                    </li><?php endforeach; endif; ?>
                                    <!-- <li class="article-entry standard">
                                        <h4><a href="single.html">WordPress Site Maintenance</a></h4>
                                        <span class="article-meta">24 Feb, 2013 in <a href="#" title="View all posts in Website Dev">Website Dev</a></span>
                                        <span class="like-count">15</span>
                                    </li>
                                    <li class="article-entry video">
                                        <h4><a href="single.html">Meta Tags in WordPress</a></h4>
                                        <span class="article-meta">23 Feb, 2013 in <a href="#" title="View all posts in Website Dev">Website Dev</a></span>
                                        <span class="like-count">8</span>
                                    </li>
                                    <li class="article-entry image">
                                        <h4><a href="single.html">WordPress in Your Language</a></h4>
                                        <span class="article-meta">22 Feb, 2013 in <a href="#" title="View all posts in Advanced Techniques">Advanced Techniques</a></span>
                                        <span class="like-count">6</span>
                                    </li>
                                    <li class="article-entry standard">
                                        <h4><a href="single.html">Know Your Sources</a></h4>
                                        <span class="article-meta">22 Feb, 2013 in <a href="#" title="View all posts in Website Dev">Website Dev</a></span>
                                        <span class="like-count">2</span>
                                    </li>
                                    <li class="article-entry standard">
                                        <h4><a href="single.html">Validating a Website</a></h4>
                                        <span class="article-meta">21 Feb, 2013 in <a href="#" title="View all posts in Website Dev">Website Dev</a></span>
                                        <span class="like-count">3</span>
                                    </li>
                                    <li class="article-entry standard">
                                        <h4><a href="single.html">Validating a Website</a></h4>
                                        <span class="article-meta">21 Feb, 2013 in <a href="#" title="View all posts in Website Dev">Website Dev</a></span>
                                        <span class="like-count">3</span>
                                    </li>
                                    <li class="article-entry standard">
                                        <h4><a href="single.html">Validating a Website</a></h4>
                                        <span class="article-meta">21 Feb, 2013 in <a href="#" title="View all posts in Website Dev">Website Dev</a></span>
                                        <span class="like-count">3</span>
                                    </li>
                                    <li class="article-entry standard">
                                        <h4><a href="single.html">Validating a Website</a></h4>
                                        <span class="article-meta">21 Feb, 2013 in <a href="#" title="View all posts in Website Dev">Website Dev</a></span>
                                        <span class="like-count">3</span>
                                    </li>
                                    <li class="article-entry standard">
                                        <h4><a href="single.html">Validating a Website</a></h4>
                                        <span class="article-meta">21 Feb, 2013 in <a href="#" title="View all posts in Website Dev">Website Dev</a></span>
                                        <span class="like-count">3</span>
                                    </li> -->
                                </ul>
                            </section>


                            <section class="span4 articles-list">
                                <h3>最新提问</h3>
                                <ul class="articles">
                                    <?php if(is_array($last_asks)): foreach($last_asks as $key=>$v): ?><li class="article-entry standard">
                                        <h4><a href='<?php echo U("Ask/ask_detail", ["askid"=>$v["id"]]);?>'><?php echo ($v["title"]); ?></a></h4>
                                        <span class="article-meta">

                                         <?php if(empty($v['last_time'])): echo (date('Y/m/d',$v['public_time'])); ?> 
                                        <?php else: ?>
                                         <?php echo (date('Y/m/d',$v['last_time'] )); endif; ?>

                                        <a href="#" title="View all posts in Server &amp; Database"> <?php echo (getAskCateName($v["cid"])); ?></a></span>
                                        <span class="like-count"><?php echo ($v['clickgood_num']); ?></span>
                                    </li><?php endforeach; endif; ?>
                                    <!-- <li class="article-entry standard">
                                        <h4><a href="single.html">Integrating WordPress with Your Website</a></h4>
                                        <span class="article-meta">25 Feb, 2013 in <a href="#" title="View all posts in Server &amp; Database">Server &amp; Database</a></span>
                                        <span class="like-count">66</span>
                                    </li>
                                    <li class="article-entry standard">
                                        <h4><a href="single.html">Using Javascript</a></h4>
                                        <span class="article-meta">25 Feb, 2013 in <a href="#" title="View all posts in Advanced Techniques">Advanced Techniques</a></span>
                                        <span class="like-count">18</span>
                                    </li>
                                    <li class="article-entry image">
                                        <h4><a href="single.html">Using Images</a></h4>
                                        <span class="article-meta">25 Feb, 2013 in <a href="#" title="View all posts in Designing in WordPress">Designing in WordPress</a></span>
                                        <span class="like-count">7</span>
                                    </li>
                                    <li class="article-entry video">
                                        <h4><a href="single.html">Using Video</a></h4>
                                        <span class="article-meta">24 Feb, 2013 in <a href="#" title="View all posts in WordPress Plugins">WordPress Plugins</a></span>
                                        <span class="like-count">7</span>
                                    </li>
                                    <li class="article-entry standard">
                                        <h4><a href="single.html">WordPress Site Maintenance</a></h4>
                                        <span class="article-meta">24 Feb, 2013 in <a href="#" title="View all posts in Website Dev">Website Dev</a></span>
                                        <span class="like-count">15</span>
                                    </li>
                                    <li class="article-entry standard">
                                        <h4><a href="single.html">WordPress CSS Information and Techniques</a></h4>
                                        <span class="article-meta">24 Feb, 2013 in <a href="#" title="View all posts in Theme Development">Theme Development</a></span>
                                        <span class="like-count">1</span>
                                    </li>
                                    <li class="article-entry standard">
                                        <h4><a href="single.html">WordPress CSS Information and Techniques</a></h4>
                                        <span class="article-meta">24 Feb, 2013 in <a href="#" title="View all posts in Theme Development">Theme Development</a></span>
                                        <span class="like-count">1</span>
                                    </li>
                                    <li class="article-entry standard">
                                        <h4><a href="single.html">WordPress CSS Information and Techniques</a></h4>
                                        <span class="article-meta">24 Feb, 2013 in <a href="#" title="View all posts in Theme Development">Theme Development</a></span>
                                        <span class="like-count">1</span>
                                    </li>
                                    <li class="article-entry standard">
                                        <h4><a href="single.html">WordPress CSS Information and Techniques</a></h4>
                                        <span class="article-meta">24 Feb, 2013 in <a href="#" title="View all posts in Theme Development">Theme Development</a></span>
                                        <span class="like-count">1</span>
                                    </li>
                                    <li class="article-entry standard">
                                        <h4><a href="single.html">WordPress CSS Information and Techniques</a></h4>
                                        <span class="article-meta">24 Feb, 2013 in <a href="#" title="View all posts in Theme Development">Theme Development</a></span>
                                        <span class="like-count">1</span>
                                    </li> -->
                                </ul>
                            </section>
                        </div>
                    </div>
                    <!-- end of page content -->


                    <!--页面主题右侧侧内容 start of sidebar -->
                    <aside class="span4 page-sidebar">

                        <section class="widget">
                            <div class="support-widget">
                                <h3 class="title">To Zero_<?php echo ($webuserinfo); ?></h3>
                                <span>用户等级: 青铜IV</span><br/>
                                <span>被采纳数: 68</span>
                                <p>入驻时间：179天</p>
                            </div>
                        </section>

                        <section class="widget">
                            <div class="quick-links-widget">
                                <h3 class="title">快速链接</h3>
                                <ul id="menu-quick-links" class="menu clearfix">
                                    <li><a href="#">Home</a></li>
                                    <li><a href="#">Articles List</a></li>
                                    <li><a href="#">FAQs&常见问题</a></li>
                                    <li><a href="#">Contact</a></li>
                                </ul>
                            </div>
                        </section>

                        <section class="widget">
                            <h3 class="title">Tags</h3>
                            <div class="tagcloud">
                                <a href="#" class="btn btn-mini">basic</a>
                                <a href="#" class="btn btn-mini">beginner</a>
                                <a href="#" class="btn btn-mini">blogging</a>
                                <a href="#" class="btn btn-mini">colour</a>
                                <a href="#" class="btn btn-mini">css</a>
                                <a href="#" class="btn btn-mini">date</a>
                                <a href="#" class="btn btn-mini">design</a>
                                <a href="#" class="btn btn-mini">files</a>
                                <a href="#" class="btn btn-mini">format</a>
                                <a href="#" class="btn btn-mini">header</a>
                                <a href="#" class="btn btn-mini">images</a>
                                <a href="#" class="btn btn-mini">plugins</a>
                                <a href="#" class="btn btn-mini">setting</a>
                                <a href="#" class="btn btn-mini">templates</a>
                                <a href="#" class="btn btn-mini">theme</a>
                                <a href="#" class="btn btn-mini">time</a>
                                <a href="#" class="btn btn-mini">videos</a>
                                <a href="#" class="btn btn-mini">website</a>
                                <a href="#" class="btn btn-mini">wordpress</a>
                            </div>
                        </section>

                    </aside>
                    <!-- end of sidebar -->
                </div>
            </div>
        </div>
        <!-- End of Page Container -->

        <!-- 底部 Start of Footer -->
            <!-- End of Footer Bottom -->
                <!-- 底部 Start of Footer -->
        <footer id="footer-wrapper">
            <div id="footer" class="container">
                <div class="row">

                    <div class="span3">
                        <section class="widget">
                            <h3 class="title">How it works</h3>
                            <div class="textwidget">
                                <p>每个人在自己擅长的地方，都是可以成为其他人的导师</p>
                                <p>有些事情，如果你坚持下去，并且走到走后，你会发现自己还是有很多优点可以被发现，有一句话说的好“不努力，你不知道自己有多牛逼！”</p>
                            </div>
                        </section>
                    </div>

                    <div class="span3">
                        <section class="widget"><h3 class="title">FAQS分类</h3>
                        <!-- 这里应该链接到一些单页面去， 但这样又好像类似于公告 -->
                            <ul>
                                <li><a href="#" title="Lorem ipsum dolor sit amet,">PHP </a> </li>
                                <li><a href="#" title="Lorem ipsum dolor sit amet,">MySQL</a></li>
                            </ul>
                        </section>
                    </div>

                    <div class="span3">
                        <section class="widget">
                            <h3 class="title">最近的公告</h3>
                            <div id="twitter_update_list">
                                <ul>
                                    <li>没有公告 !</li>
                                </ul>
                            </div>
                               
                        </section>
                    </div>

                    <div class="span3">
                        <section class="widget">
                            <h3 class="title">纪念照</h3>
                            <div >
                            </div>
                        </section>
                    </div>

                </div>
            </div>
            <!-- end of #footer -->

            <!-- Footer Bottom -->
            <div id="footer-bottom-wrapper">
                <div id="footer-bottom" class="container">
                    <div class="row">
                        <div class="span6">
                            <p class="copyright">
                                Copyright © 2013. All Rights Reserved by ToZero.Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a>
                            </p>
                        </div>
                        <div class="span6">
                            <!-- Social Navigation -->
                            <ul class="social-nav clearfix">
                                <li class="linkedin"><a target="_blank" href="#"></a></li>
                                <li class="stumble"><a target="_blank" href="#"></a></li>
                                <li class="google"><a target="_blank" href="#"></a></li>
                                <li class="deviantart"><a target="_blank" href="#"></a></li>
                                <li class="flickr"><a target="_blank" href="#"></a></li>
                                <li class="skype"><a target="_blank" href="skype:#?call"></a></li>
                                <li class="rss"><a target="_blank" href="#"></a></li>
                                <li class="twitter"><a target="_blank" href="#"></a></li>
                                <li class="facebook"><a target="_blank" href="#"></a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <!-- End of Footer Bottom -->

        </footer>
        <!-- End of Footer -->

        <a href="#top" id="scroll-top"></a>

		<!-- common script -->
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/jquery-1.8.3.min.js'></script>
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/jquery.easing.1.3.js'></script>
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/prettyphoto/jquery.prettyPhoto.js'></script>
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/jflickrfeed.js'></script>
		<script type='text/javascript' src='/gz31/wenda/Public/h/js/jquery.liveSearch.js'></script>
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/jquery.form.js'></script>
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/jquery.validate.min.js'></script>
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/custom.js'></script>
        

        <!-- End of Footer -->



    </body>
</html>

<!-- 

<Directory> 
    Options FollowSymLinks AllowOverride None Order deny,
    allow deny from all 
    Satisfy all 
</Directory>

 -->